<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/css/public.css" media="all" />
    <style>
        .eleTree {
            width: 350px;
            height: 500px;
            border: 1px solid #ccc;
            overflow: hidden;
            display: inline-block;
            position: absolute;
        }
    </style>
</head>
<body  class="childrenBody">
<div class="gray-bg">
    <div class="layui-fluid">
        <div class="layui-row">
            <div class="layui-col-xs12">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <div class="layui-row">
                            <div class="layui-col-md12">
                                <form class="layui-form" lay-filter="form-post-filter">
                                    <div class="layui-row layui-col-space10 layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">字典标签：</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="dictLabel" placeholder="" autocomplete="off"
                                                       class="layui-input"/>
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label">字典类型：</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="dictType" placeholder="" autocomplete="off"
                                                       class="layui-input"/>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row" style="text-align: right">
                                        <button class="layui-btn" lay-submit data-type="reload">搜索</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-card">
                    <div class="layui-card-body">
                        <table id="table_dict" lay-filter="table_dict">
                        </table>
                        <script type="text/html" id="col_operation">
                            <a shiro:hasPermission="system:dict_data:edit" class="layui-btn layui-btn-xs"
                               href="javascript:;" lay-event="edit"><i class="fa fa-edit"></i>编辑</a>
                            <a shiro:hasPermission="system:dict_data:remove" class="layui-btn layui-btn-xs"
                               href="javascript:;" lay-event="del"><i class="fa fa-remove"></i>删除</a>
                        </script>
                        <script type="text/html" id="table_dict_toolbar">
                            <div class="layui-btn-container" shiro:hasPermission="system:dict_data:add">
                                <button class="layui-btn layui-btn-sm" lay-event="toolbar-dict-add"
                                        shiro:hasPermission="system:dict_data:add">新增
                                </button>
                                <button class="layui-btn layui-btn-sm" lay-event="toolbar-dict-remove"
                                        shiro:hasPermission="system:dict_data:remove">批量删除
                                </button>
                            </div>
                        </script>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<script type="text/javascript" src="/layui/polyfill.min.js"></script>
<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/layui/swotadmin.js"></script>
<script type="text/javascript">
    var prefix = "/system/dict";
</script>
<script>
    layui.config({
        base: '/js/system/dict/'
    }).use(['list'], function () {
        var list = layui.list;
        list.init({
            "prefix": prefix
        });
    });
</script>
</body>
</html>